package com.mybatis.test.mapper;

import com.mybatis.test.model.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @auther carter
 * create time    2018-06-13
 */
public interface UserMapper {

    @Select("select * from user")
    List<User> selectAll();

    @Select("select * from user where 1=1  <if test='loginid != null'>and loginid like #{loginid} </if>")
    List<User> selectByParam(User user);

}
